package com.wen.task;

import org.springframework.stereotype.Component;

import java.time.LocalDateTime;

/**
 * 定时任务测试
 */
@Component
public class TestTask {
    public void execute1() {
        System.out.printf("Task: %s, Current time: %s\n", 1, LocalDateTime.now());
    }
    public void execute2() {
        System.out.printf("Task: %s, Current time: %s\n", 2, LocalDateTime.now());
    }
    public void execute3() {
        System.out.printf("Task: %s, Current time: %s\n", 3, LocalDateTime.now());
    }
    public void execute4() {
        System.out.printf("Task: %s, Current time: %s\n", 4, LocalDateTime.now());
    }
    public void execute5() {
        System.out.printf("Task: %s, Current time: %s\n", 5, LocalDateTime.now());
    }
}
